﻿// =================================================================== 
// 项目说明
//====================================================================
// lsc @Copy Right 2019
// 文件： CluesEntity.cs
// 项目名称：斑马车务
// 创建时间：2019-12-11
// 负责人：lsc
// ===================================================================

using System;
using Dapper.Extensions;

namespace CRM.Infrastructure.Entity
{
	/// <summary>
	///数据实体  
	/// </summary>
    [PrimaryKey("ClueID")]
	public class Clues
	{
		///<summary>
		///
		///</summary>
		public Clues()
		{
		}	
    
		
		///<summary>
		///
		///</summary>
        [Column("ClueID","")]
        public long ClueID { get; set; }

		///<summary>
		///1：上传 2：分配
		///</summary>
        [Column("SourceID","1：上传 2：分配")]
        public int SourceID { get; set; }

		///<summary>
		///电话号码
		///</summary>
        [Column("Mobile","电话号码")]
        public string Mobile { get; set; }

        ///<summary>
        ///原始电话号码
        ///</summary>
        [Column("HisMobile", "原始电话号码")]
        public string HisMobile { get; set; }

        ///<summary>
        ///号牌号码
        ///</summary>
        [Column("PlateNo","号牌号码")]
        public string PlateNo { get; set; }

		///<summary>
		///品牌ID
		///</summary>
        [Column("BrandID","品牌ID")]
        public int BrandID { get; set; }

		///<summary>
		///车型ID
		///</summary>
        [Column("ModelID","车型ID")]
        public int ModelID { get; set; }

		///<summary>
		///车款ID
		///</summary>
        [Column("CarID","车款ID")]
        public int CarID { get; set; }

		///<summary>
		///品牌
		///</summary>
        [Column("Brand","品牌")]
        public string Brand { get; set; }

		///<summary>
		///车型
		///</summary>
        [Column("Model","车型")]
        public string Model { get; set; }

		///<summary>
		///车款名称
		///</summary>
        [Column("CarName","车款名称")]
        public string CarName { get; set; }

        ///<summary>
        ///线索用户姓名
        ///</summary>
        [Column("UserName", "线索用户姓名")]
        public string UserName { get; set; }
        
        ///<summary>
        ///注册日期
        ///</summary>
        [Column("RegisterDate","注册日期")]
        public DateTime RegisterDate { get; set; }

		///<summary>
		///发证日期
		///</summary>
        [Column("IssueDate","发证日期")]
        public DateTime IssueDate { get; set; }

        ///<summary>
        ///保险生效日期
        ///</summary>
        [Column("BeginDate", "保险生效日期")]
        public DateTime BeginDate { get; set; }

        ///<summary>
        ///保险终止日期
        ///</summary>
        [Column("EndDate", "保险终止日期")]
        public DateTime EndDate { get; set; }

		///<summary>
		///用户ID
		///</summary>
        [Column("UserID","用户ID")]
        public long UserID { get; set; }

		///<summary>
		///分配时间
		///</summary>
        [Column("Assign","分配时间")]
        public DateTime Assign { get; set; }

		///<summary>
		///逻辑标识(1有效0无效)
		///</summary>
        [Column("IsActive","逻辑标识(1有效0无效)")]
        public int IsActive { get; set; }

		///<summary>
		///发动机号
		///</summary>
        [Column("EngineNo","发动机号")]
        public string EngineNo { get; set; }

		///<summary>
		///0：待跟进1：跟进中 2：成交 3：战败
		///</summary>
        [Column("FlowStep","0：待跟进1：跟进中 2：成交 3：战败")]
        public int FlowStep { get; set; }

		///<summary>
		///0:无 1：低 2：中 3：高
		///</summary>
        [Column("PurchaseStep","0:无 1：低 2：中 3：高")]
        public int PurchaseStep { get; set; }

		///<summary>
		///分配时间
		///</summary>
        [Column("UpdateDate","分配时间")]
        public DateTime UpdateDate { get; set; }

		///<summary>
		///创建时间
		///</summary>
        [Column("CreatedDate","创建时间")]
        public DateTime CreatedDate { get; set; }

		///<summary>
		///1男 2女 0未知
		///</summary>
        [Column("Sex","1男 2女 0未知")]
        public int Sex { get; set; }

        [Column("AssignFrt", "分配时间字符串")]
        public string AssignFrt { set; get; }


        [Column("SortNum", "线索排序")]
        public int SortNum { set; get; }


        [Column("ClueType", "线索类型 1:出险客户 2:续保客户")]
        public int ClueType { set; get; }

        [Column("CompanyID", "公司")]
        public int CompanyID { set; get; }

        [Column("InsuranceCompany", "保险公司")]
        public string InsuranceCompany { set; get; }

        [Column("UploadStatus", "列表上传状态 0匹配中  1匹配成功  2匹配失败")]
        public int UploadStatus { get; set; }

        [Column("HisUserName", "原始用户名")]
        public string HisUserName { set; get; }

        [Column("IsSync", "是否同步 1:同步 0：没同步")]
        public int IsSync { set; get; }

        [Column("IsMessage", "是否发送短信 1:是 0：否")]
        public int IsMessage { set; get; }
    }
}